<!DOCTYPE html>
<?php 
include 'conf/tag_idioma.php';
?>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title><?php global $title; echo $title;?></title>

    <link rel="shortcut icon" href="http://<?php echo DOMINIO_BASE_COMPLETO?>/img/favicon.png">

    <meta name="description" content="<?php global $descripcion; echo $descripcion;?>">
    <meta name="keywords" content="<?php global $keywords; echo $keywords;?>">
    
     <!-- CSS -->
    <link href="http://<?php echo DOMINIO_BASE_COMPLETO?>/css/preload.css" rel="stylesheet">    

    <!-- Compiled in vendors.js -->
    <!--
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/bootstrap-switch.min.css" rel="stylesheet">
    <link href="assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="assets/css/animate.min.css" rel="stylesheet">
    <link href="assets/css/slidebars.min.css" rel="stylesheet">
    <link href="assets/css/lightbox.css" rel="stylesheet">
    <link href="assets/css/jquery.bxslider.css" rel="stylesheet" />
    <link href="assets/css/buttons.css" rel="stylesheet">
    -->
    
    <link href="http://<?php echo DOMINIO_BASE_COMPLETO?>/css/vendors.css" rel="stylesheet">
    <link href="http://<?php echo DOMINIO_BASE_COMPLETO?>/css/syntaxhighlighter/shCore.css" rel="stylesheet" >

    <link href="http://<?php echo DOMINIO_BASE_COMPLETO?>/css/style-blue.css" rel="stylesheet" title="default">
    <link href="http://<?php echo DOMINIO_BASE_COMPLETO?>/css/width-full.css" rel="stylesheet" title="default">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
        <script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/html5shiv.min.js"></script>
        <script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/respond.min.js"></script>
    <![endif]-->
</head>

<!-- Preloader -->
<div id="preloader">
    <div id="status">&nbsp;</div>
</div>

<body>

<!-- Analytics -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36912531-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<div id="sb-site">
<div class="boxed">

<header id="header-full-top" class="hidden-xs header-full">
    <div class="container">
        <div class="header-full-title">
            <?php if (IDIOMA == "Ingles"){?>
            <h1 class="animated fadeInRight"><a href="http://<?php echo DOMINIO_BASE_COMPLETO?>" class="active"><?php echo gettext("locales")?> <span><?php echo gettext("anuncios")?></span></a></h1>
            <?php } else {?>
             <h1 class="animated fadeInRight"><a href="http://<?php echo DOMINIO_BASE_COMPLETO?>" class="active"><?php echo gettext("anuncios")?> <span><?php echo gettext("locales")?></span></a></h1>
            <?php }?>
            <p class="animated fadeInRight"><?php echo gettext("en")?> <?php echo PAIS?>, <?php echo gettext("clasificados más cerca tuyo")?></p>
        </div>
        <nav class="top-nav">
            <ul class="top-nav-social hidden-sm">
                <li><a href="<?php echo FACEBOOK_PAGE?>" class="animated fadeIn animation-delay-8 facebook"><i class="fa fa-facebook"></i></a></li>
                <li><a href="<?php echo GPLUS_PAGE?>" rel="publisher" class="animated fadeIn animation-delay-9 google-plus"><i class="fa fa-google-plus"></i></a></li>               
            </ul>
            
             <?php if (logged_in()){?>
             	<div class="dropdown animated fadeInDown animation-delay-11">
		             <a href="<?php echo getPerfilUsuarioPath($_SESSION['usuario_id'])?>" class="dropdown-toggle" ><i class="fa fa-user"></i> <?php echo $_SESSION['username'] ?> <?php if (MODULO_PREMIUM && is_premium()){?><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><?php }?></a>                
		        </div> <!-- dropdown -->
             	<div class="dropdown animated fadeInDown animation-delay-11">
		             <a href="<?php echo get_logout_url_index()?>" class="dropdown-toggle" ><?php echo gettext("Cerrar Sesion")?></a>                
		        </div> <!-- dropdown -->
		        
		        <?php if (MODULO_PREMIUM && !is_premium()){?>
		       
		        <div class="dropdown animated fadeInDown animation-delay-11">
		             <a href="<?php echo getPremiumUpgradePath()?>" class="dropdown-toggle"><?php echo gettext("Actualizar a Usuario Premium")?> <span class="label label-success"> <?php echo gettext("Nuevo")?></span></a>                
		        </div> <!-- dropdown -->
		        
		        <?php }?>

            <?php } else {?>
            
		        <div class="dropdown animated fadeInDown animation-delay-11">
		             <a href="<?php echo get_login_url_index()?>" class="dropdown-toggle" ><i class="fa fa-user"></i> <?php echo gettext("Iniciar Sesion")?></a>                
		        </div> <!-- dropdown -->
		        <div class="dropdown animated fadeInDown animation-delay-11">
		             <a href="<?php echo get_registro_url_index()?>" class="dropdown-toggle" ><i class="fa fa-user"></i> <?php echo gettext("Registrarse")?></a>                
		        </div> <!-- dropdown -->

            <?php }?>

            <div class="dropdown animated fadeInDown animation-delay-11">

            </div> <!-- dropdown -->

            <div class="dropdown animated fadeInDown animation-delay-13">
                <a id="headersearch" href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-search"></i></a>
                <div class="dropdown-menu dropdown-menu-right dropdown-search-box animated fadeInUp">
                    <form role="form" action="<?php echo get_busqueda_index_url();?>" method="GET">
                        <div class="input-group">
                            <input type="text" name="query" maxlength="60" class="form-control" placeholder="<?php echo gettext("Buscar")?>..." required>
                            <span class="input-group-btn">
                                <button class="btn btn-ar btn-primary" type="submit"><?php echo gettext("Ir")?>!</button>
                            </span>
                        </div><!-- /input-group -->
                    </form>
                </div>
            </div> <!-- dropdown -->
        </nav>
    </div> <!-- container -->
</header> <!-- header-full -->